package net.lookyou.boot.demo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_user")
@ApiModel
public class User {

    @TableField(value = "id")
    @ApiModelProperty(value = "编号", required = true, dataType = "Integer")
    private Integer id;

    @TableField(value = "name")
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @TableField(value = "roleId")
    @ApiModelProperty(value = "角色主键", required = true)
    private Integer roleId;
}
